package com.spring.config;

import com.spring.aop.MathCal;
import com.spring.aspect.LoginAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Description:
 *
 * @author lijie
 * @create 2019-01-16 23:39
 * Update by lijie 2019-01-16 23:39
 */
@Configuration
@EnableAspectJAutoProxy
public class MainConfigOfAOP {

    @Bean
    public MathCal mathCal(){
        return new MathCal();
    }
    @Bean
    public LoginAspect loginAspect(){
        return new LoginAspect();
    }

}
